import SsCollect from "@/pages/SsCollect.vue";
import SsHome from "@/pages/SsHome.vue";
import SsInterview from "@/pages/SsInterview.vue";
import SsLike from "@/pages/SsLike.vue";
import SsLoad from "@/pages/SsLoad.vue";
import SsMy from "@/pages/SsMy.vue";
import SsNew from "@/pages/SsNew.vue";
import SsRecommon from "@/pages/SsRecommon.vue";
import SsRegister from "@/pages/SsRegister.vue";
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    { path: "/", redirect: "/login" },
    { path: "/login", component: SsLoad },
    { path: "/register", component: SsRegister },
    {
      path: "/home",
      component: SsHome,
      children: [
        {
          path: "/home/interview",
          component: SsInterview,
          children: [
            { path: "/home/interview/recommon", component: SsRecommon },
            { path: "/home/interview/new", component: SsNew },
          ],
        },
        { path: "/home/collect", component: SsCollect },
        { path: "/home/like", component: SsLike },
        { path: "/home/my", component: SsMy },
      ],
    },
  ],
  //设置类名别名
  linkActiveClass: "ac",
  linkExactActiveClass: "e-ac",
});
export default router;
